package com.zmj.sy.mom.srv.aps.bean.entity.base;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.zmj.sy.mom.srv.aps.utils.Comment;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Getter
@Setter
public class BaseEntity {

    @Comment("ID")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @Comment("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createDateTime;

    @Comment("创建人姓名")
    @TableField(fill = FieldFill.INSERT)
    private String createUsername;

    @Comment("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime modifyDateTime;

    @Comment("修改人姓名")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String modifyUsername;

    @Comment("是否删除 0未删除 1删除")
    @TableField(fill = FieldFill.INSERT)
    private Integer deleted;

    @Comment("工厂ID")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Integer factoryId;
}
